<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\library\Token;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

    public function index()
    {   //dump(ROOT_PATH);exit;
        return $this->view->fetch();
    }

    /**
     * 详情
     * @return [type] [description]
     */
    public function detail(){
        return $this->view->fetch();
    }

    /**
     * 个人信息
     * @return [type] [description]
     */
    public function info(){
        return $this->view->fetch();
    }

    /**
     * 个人中心页面
     * @return [type] [description]
     */
    public function my(){
        return $this->view->fetch();
    }

    /**
     * 查看用户列表
     * @return [type] [description]
     */
    public function look_list(){
        return $this->view->fetch();
    }

    /**
     * 实名认证
     * @return [type] [description]
     */
    public function authen(){
        return $this->view->fetch();
    }

    /**
     * 实名认证提交页面
     * @return [type] [description]
     */
    public function authen_info(){
        return $this->view->fetch();
    }

    /**
     * 设置页面
     * @return [type] [description]
     */
    public function setting(){
        return $this->view->fetch();
    }

    /**
     * 单页页面
     * @return [type] [description]
     */
    public function page(){
        return $this->view->fetch();
    }

    /**
     * 单页页面
     * @return [type] [description]
     */
    public function search_list(){
        $gender = input('param.gender');
        $age = input('param.age');
        $height = input('param.height');
        $income_id = input('param.income_id');
        $education_id = input('param.education_id');
        $birth_city = input('param.birth_city');
       // dump($gender);dump($age); dump($height); dump($income_id); dump($education_id);dump($birth_city);exit;
        $data=[
            'gender'=>$gender,
            'age'=>$age,
            'height'=>$height,
            'income_id'=>$income_id,
            'education_id'=>$education_id,
            'birth_city'=>$birth_city,
        ];
        $this->assign($data);
        return $this->view->fetch();
    }

    /**
     * 服务页面
     * @return [type] [description]
     */
    public function service(){
        return $this->view->fetch();
    }

    /**
     * 支付页面
     * @return [type] [description]
     */
    public function apply(){
        return $this->view->fetch();
    }

    public function weixin(){
        $id = input('param.id');
        return $this->view->fetch();
    }

    /**
     * [news description]
     * @return [type] [description]
     */
    public function tags(){
        return $this->view->fetch();
        // dump(57678);exit;
    }

    public function flower($value='')
    {
        return $this->view->fetch();
    }

    /**
     * 查看用户列表
     * @return [type] [description]
     */
    public function search(){
        return $this->view->fetch();
    }

    public function news()
    {
        $newslist = [];
        return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
    }

    public function up(){
        return $this->view->fetch();
    }

}
